package main
import (
	"fmt"
)

var ch chan string=make(chan string)
func hello() {
	fmt.Println("Hello world goruntine")
	ch <- "finished"
	fmt.Println("finished")
}
func hello2() {
	fmt.Println("Hello world goruntine 2 times")
	ch <- "finished"
	fmt.Println("finished 2")
}

func main() {
	go hello()
	<-ch
	go hello2()
	<-ch
	// time.Sleep(50*time.Microsecond)
	fmt.Println("main function")
}